package org.ysu.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import net.minidev.json.annotate.JsonIgnore;
import org.ysu.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 贫困户表
 * </p>
 *
 * @author LiuJunDa
 * @since 2024-08-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Family对象", description = "贫困户表")
public class Family implements Serializable {

    private static final long serialVersionUID = 1L;

    public Family(Long fId, String pName, String pNumber, Long rId, String province, String city, String county, String township, String village) {
        this.fId = fId;
        this.pName = pName;
        this.pNumber = pNumber;
        this.rId = rId;
        this.province = province;
        this.city = city;
        this.county = county;
        this.township = township;
        this.village = village;
    }

    public Family(Long fId, String pName, String pNumber, Long rId, Long vcId, String province, String city, String county, String township, String village) {
        this.fId = fId;
        this.pName = pName;
        this.pNumber = pNumber;
        this.rId = rId;
        this.vcId = vcId;
        this.province = province;
        this.city = city;
        this.county = county;
        this.township = township;
        this.village = village;
    }

    public Family(Long fId, Boolean alert) {
        this.fId = fId;
        this.alert = alert;
    }

    @ApiModelProperty("贫困户编号")
    @TableId
    private Long fId;

    @ApiModelProperty("户主姓名")
    private String pName;

    @ApiModelProperty("户主身份证号")
    private String pNumber;

    @ApiModelProperty("地区编号")
    private Long rId;

    @ApiModelProperty("帮扶人id")
    private Long vcId;

    @ApiModelProperty("省")
    private String province;

    @ApiModelProperty("市")
    private String city;

    @ApiModelProperty("县")
    private String county;

    @ApiModelProperty("乡")
    private String township;

    @ApiModelProperty("村")
    private String village;

    @ApiModelProperty("1-警告，0-未警告")
    private Boolean alert;

    @TableField(exist = false)
    private String headName;

    @TableField(exist = false)
    private String headIdNumber;


}
